home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / webshell / nsIContentViewerContainer.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  108 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIContentViewerContainer.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIContentViewerContainer_h__
  6. #define __gen_nsIContentViewerContainer_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIContentViewer; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIContentViewerContainer */
  21. #define NS_ICONTENTVIEWERCONTAINER_IID_STR "ea2ce7a0-5c3d-11d4-90c2-0050041caf44"
  22.  
  23. #define NS_ICONTENTVIEWERCONTAINER_IID \
  24.   {0xea2ce7a0, 0x5c3d, 0x11d4, \
  25.     { 0x90, 0xc2, 0x00, 0x50, 0x04, 0x1c, 0xaf, 0x44 }}
  26.  
  27. class NS_NO_VTABLE nsIContentViewerContainer : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTENTVIEWERCONTAINER_IID)
  31.  
  32.   /* void embed (in nsIContentViewer aDocViewer, in string aCommand, in nsISupports aExtraInfo); */
  33.   NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char *aCommand, nsISupports *aExtraInfo) = 0;
  34.  
  35.   /**
  36.    * Allows the PrintEngine to make this call on 
  37.    * an internal interface to the DocShell
  38.    */
  39.   /* void setIsPrinting (in boolean aIsPrinting); */
  40.   NS_IMETHOD SetIsPrinting(PRBool aIsPrinting) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSICONTENTVIEWERCONTAINER \
  46.   NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char *aCommand, nsISupports *aExtraInfo); \
  47.   NS_IMETHOD SetIsPrinting(PRBool aIsPrinting); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSICONTENTVIEWERCONTAINER(_to) \
  51.   NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char *aCommand, nsISupports *aExtraInfo) { return _to Embed(aDocViewer, aCommand, aExtraInfo); } \
  52.   NS_IMETHOD SetIsPrinting(PRBool aIsPrinting) { return _to SetIsPrinting(aIsPrinting); } 
  53.  
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  55. #define NS_FORWARD_SAFE_NSICONTENTVIEWERCONTAINER(_to) \
  56.   NS_IMETHOD Embed(nsIContentViewer *aDocViewer, const char *aCommand, nsISupports *aExtraInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->Embed(aDocViewer, aCommand, aExtraInfo); } \
  57.   NS_IMETHOD SetIsPrinting(PRBool aIsPrinting) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsPrinting(aIsPrinting); } 
  58.  
  59. #if 0
  60. /* Use the code below as a template for the implementation class for this interface. */
  61.  
  62. /* Header file */
  63. class nsContentViewerContainer : public nsIContentViewerContainer
  64. {
  65. public:
  66.   NS_DECL_ISUPPORTS
  67.   NS_DECL_NSICONTENTVIEWERCONTAINER
  68.  
  69.   nsContentViewerContainer();
  70.  
  71. private:
  72.   ~nsContentViewerContainer();
  73.  
  74. protected:
  75.   /* additional members */
  76. };
  77.  
  78. /* Implementation file */
  79. NS_IMPL_ISUPPORTS1(nsContentViewerContainer, nsIContentViewerContainer)
  80.  
  81. nsContentViewerContainer::nsContentViewerContainer()
  82. {
  83.   /* member initializers and constructor code */
  84. }
  85.  
  86. nsContentViewerContainer::~nsContentViewerContainer()
  87. {
  88.   /* destructor code */
  89. }
  90.  
  91. /* void embed (in nsIContentViewer aDocViewer, in string aCommand, in nsISupports aExtraInfo); */
  92. NS_IMETHODIMP nsContentViewerContainer::Embed(nsIContentViewer *aDocViewer, const char *aCommand, nsISupports *aExtraInfo)
  93. {
  94.     return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96.  
  97. /* void setIsPrinting (in boolean aIsPrinting); */
  98. NS_IMETHODIMP nsContentViewerContainer::SetIsPrinting(PRBool aIsPrinting)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* End of implementation class template. */
  104. #endif
  105.  
  106.  
  107. #endif /* __gen_nsIContentViewerContainer_h__ */
  108.